﻿@model IEnumerable<NK.Domain.Entities.ProductInfo>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Group)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.GroupCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.BarCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SpecialBarCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.POSDescription)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ProductName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PKT)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Package)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Cost)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.VAT)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CostIncludeVAT)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PriceA)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PriceB)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PriceC)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PriceD)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsDeleted)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Group)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.GroupCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BarCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SpecialBarCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.POSDescription)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ProductName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PKT)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Package)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Cost)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VAT)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CostIncludeVAT)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PriceA)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PriceB)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PriceC)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PriceD)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsDeleted)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
